function loginAuth(OriginComponent) {
    return props => {
        const token = localStorage.getItem('token')

        if (token) {
            return <OriginComponent />
        } else {
            return <p>请先登陆，</p>
        }
    }

}
export default loginAuth;
